﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CarRent.BL;

namespace CarRent.Controls
{
    public partial class ApprovalControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CarImpl carImpl = new CarImpl();
                ddlCar.DataSource = carImpl.GetAll();
                ddlCar.DataValueField = "CarID";
                ddlCar.DataTextField = "CarName";
                ddlCar.DataBind();
            }
        }
    }
}